import { Entity } from '../entities/entity';
import { IColliderConfig } from './collider.component';
import { EventComponent } from './event.component';

export interface IColliosonEventData {
  readonly collidedEntity: Entity;
  readonly colliderConfig: IColliderConfig;
}

export class CollisionEventComponent extends EventComponent {
  constructor(public readonly data: IColliosonEventData[] = []) {
    super();
  }
}
